function getAccountMemberList (params) {
  return $axios({
    url: '/admin/page',
    method: 'get',
    params
  })
}

function getAllOperators(params) {
  return $axios({
    url: '/operator/getAllOperators',
    method: 'get',
    params
  })
}

function getAllHouseholds(params) {
  return $axios({
    url: '/operator/getAllHouseholds',
    method: 'get',
    params
  })
}

// 修改页面反查详情接口
function queryOperatorById (id) {
  return $axios({
    url: `/operator/queryOperatorById/${id}`,
    method: 'get'
  })
}

function queryHouseholdById (id) {
  return $axios({
    url: `/operator/queryHouseholdById/${id}`,
    method: 'get'
  })
}

// 修改---启用禁用接口
function addOperator (params) {
  return $axios({
    url: '/operator/addOperator',
    method: 'put',
    data: { ...params }
  })
}

// 修改---启用禁用接口
function addHousehold (params) {
  return $axios({
    url: '/operator/addHousehold',
    method: 'put',
    data: { ...params }
  })
}

function updateOperator (params) {
  return $axios({
    url: '/operator/updateOperator',
    method: 'put',
    data: { ...params }
  })
}

function updateHousehold (params) {
  return $axios({
    url: '/operator/updateHousehold',
    method: 'put',
    data: { ...params }
  })
}

// 修改---启用禁用接口
function enableOrDisableAccount (params) {
  return $axios({
    url: '/admin',
    method: 'put',
    data: { ...params }
  })
}

// 修改---启用禁用接口
function enableOrDisableOperator (params) {
  return $axios({
    url: '/operator/updateOperator',
    method: 'put',
    data: { ...params }
  })
}

// 修改---启用禁用接口
function enableOrDisableHousehold (params) {
  return $axios({
    url: '/operator/updateHousehold',
    method: 'put',
    data: { ...params }
  })
}

// 新增---添加员工
function addEmployee (params) {
  return $axios({
    url: '/admin',
    method: 'post',
    data: { ...params }
  })
}

// 修改---添加员工
function editEmployee (params) {
  return $axios({
    url: '/admin',
    method: 'put',
    data: { ...params }
  })
}

// 修改页面反查详情接口
function queryEmployeeById (id) {
  return $axios({
    url: `/admin/${id}`,
    method: 'get'
  })
}